﻿import request from '/@/utils/request';
enum Api {
  AddBoardDisplayDesign = '/api/boardDisplayDesign/add',
  DeleteBoardDisplayDesign = '/api/boardDisplayDesign/delete',
  UpdateBoardDisplayDesign = '/api/boardDisplayDesign/update',
  PageBoardDisplayDesign = '/api/boardDisplayDesign/page',
  DetailBoardDisplayDesign = '/api/boardDisplayDesign/detail',
  getDetailBoardDisplayDesignDetail = '/api/boardDisplayDesignDetail/getExtDetail',
  getDetailByNo = '/api/boardDisplayDesign/getDetailByNo',
}

// 增加组态设计
export const addBoardDisplayDesign = (params?: any) =>
	request({
		url: Api.AddBoardDisplayDesign,
		method: 'post',
		data: params,
	});

// 删除组态设计
export const deleteBoardDisplayDesign = (params?: any) => 
	request({
			url: Api.DeleteBoardDisplayDesign,
			method: 'post',
			data: params,
		});

// 编辑组态设计
export const updateBoardDisplayDesign = (params?: any) => 
	request({
			url: Api.UpdateBoardDisplayDesign,
			method: 'post',
			data: params,
		});

// 分页查询组态设计
export const pageBoardDisplayDesign = (params?: any) => 
	request({
			url: Api.PageBoardDisplayDesign,
			method: 'post',
			data: params,
		});

// 详情组态设计
export const detailBoardDisplayDesign = (id: any) => 
	request({
			url: Api.DetailBoardDisplayDesign,
			method: 'get',
			data: { id },
		});

// 组态结构
export const getDetailBoardDisplayDesignDetail = async (id: any) => 
	request({
			url: Api.getDetailBoardDisplayDesignDetail+"/"+id,
			method: 'get',
			data: { id },
		});
// 组态结构
export const getDetailByNo = (no: any) => 
	request({
			url: Api.getDetailByNo+"/"+no,
			method: 'get',
			data: { no },
		});

		


